import com.sun.org.apache.bcel.internal.classfile.InnerClass;

class Outclass{//外部类

    public int data1=1;
    private int data2=2;

    public static int data5=5;
    //静态内部类
    static class InnerClass
    {
        public int data3=1;
        private int data4=2;
        public static int data6=5;
        public void func()
        {
            Outclass outclass=new Outclass();
            System.out.println("==============");
            System.out.println(outclass.data1);
            System.out.println(outclass.data2);
            System.out.println(data3);
            System.out.println(data4);
            System.out.println(data5);
            System.out.println(data6);

        }
    }

    public void fun()
    {
        System.out.println("==============");
        InnerClass innerClass=new InnerClass();
        System.out.println(data1);
        System.out.println(data2);
        System.out.println(innerClass.data3);
        System.out.println(innerClass.data4);
        System.out.println(data5);
        System.out.println(innerClass.data6);
    }
}



public class Test {
    public static void main(String[] args) {
        Outclass.InnerClass innerClass=new Outclass.InnerClass();
        innerClass.func();
        Outclass outclass=new Outclass();
        outclass.fun();
    }



}
